package top.zy.service.zymallgoodsservice.spec.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.zy.service.zymallgoodsinterface.entity.SpecParam;

import java.util.List;

@Mapper
public interface SpecParamMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SpecParam record);

    int insertSelective(SpecParam record);

    SpecParam selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SpecParam record);

    int updateByPrimaryKey(SpecParam record);

    List<SpecParam> SelectParams(@Param("gid") Long gid,@Param("cid") Long cid,@Param("searching") Boolean searching);

    List<SpecParam> selectSpecParamByGroupId(@Param("groupId") Long groupId);
}